package com.xqit.ydzhkt.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.stereotype.Component;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * Created by Janus on 2020/6/8
 * 提问表
 */
@Component
@Data
public class QuestionEntity implements Serializable {
   // 问题id
    private Integer id;
    //提问学生
    private Integer studentId;
    //指定回答教师
    private Integer teacherId;
    //问题标题
    private String questionTitle;
    //问题内容
    private String questionContent;
    //提问时间
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date questionTime;
    //是否回复
    private int reply;

    private Student student;
//    private Teacher teacher;
    private List<AnswerEntity> listAnswerEntity;
}
